<p>Выбранный диапазон дат: с <b>
<?php
$length=$PreparedTemplates['length'];
$start=$PreparedTemplates['date_start'];
$end=$PreparedTemplates['date_end'];
$sec_st = strtotime($start);
$sec_end=strtotime($end);
$date_st=date("F j, Y", $sec_st);
$date_end=date("F j, Y", $sec_end);
echo $date_st;
?>
</b> до <b>
<?php 
echo $date_end;
?></b>

<table class="report">
<?php
if (isset($PreparedTemplates['report_form']['empty'])) {
	echo $PreparedTemplates['report_form']['empty'];
}
else {
foreach ($PreparedTemplates['report_form'] as $report_row)
{
?>
  <tr>
  	
  	<td>
	<?php echo $report_row['ip']?>
	</td>
	<td>
	<?php echo'<a href="http://mvc.ua/main.php?action=processform2&domain='.$report_row['domain'].'&ip='.$report_row['ip'].'&start='.$start.'&end='.$end.'&length='.$length.'">'.$report_row['domain'].'</a>';?>
	</td>
	<td>
	<?php echo $report_row['cnt'];?>
	</td>
	
  </tr>
<?php 
}}
?>
</table>

